﻿<UserControl x:Class="Vtron.HipcConfigurationTools.CodecConnectView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
    <Grid Background="{x:Null}" Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <ScrollViewer VerticalAlignment="Top" HorizontalAlignment="Stretch" VerticalScrollBarVisibility="Auto" VerticalContentAlignment="Top" BorderThickness="0,0,0,0" Grid.RowSpan="1" Grid.Row="0">
            <Grid  HorizontalAlignment="Center" Margin="10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="65"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Text="编码盒:" Foreground="#FF444444" VerticalAlignment="Center" Width="Auto" Height="Auto" HorizontalAlignment="Right" Grid.ColumnSpan="1" Margin="5,0,0,0" />
                <ComboBox x:Name="EncodedCombo" DisplayMemberPath="Ip" ItemsSource="{Binding Path=EncodedCodecList}" SelectedItem="{Binding EncodedSelectedItem, Mode=TwoWay}"  Grid.Row="0" Grid.Column="1" Width="120" Height="Auto" VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="5,0,20,0" />
                <TextBlock Grid.Row="0" Grid.Column="2" Text="解码盒:" Foreground="#FF444444" VerticalAlignment="Center" Width="Auto" Height="Auto" HorizontalAlignment="Right" Grid.ColumnSpan="1" Margin="5,0,0,0" />
                <ComboBox x:Name="DecodeCombo" DisplayMemberPath="Ip" ItemsSource="{Binding Path=DecodeComboList}" SelectedItem="{Binding DecodeSelectedItem, Mode=TwoWay}" Grid.Row="0" Grid.Column="3" Width="120" Height="Auto" VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="5,0,0,0" />
            </Grid>
        </ScrollViewer>
        <StackPanel Height="Auto" VerticalAlignment="Bottom" Orientation="Horizontal" Grid.RowSpan="1" HorizontalAlignment="Center" Grid.Row="1" Margin="5">
            <Button Name="SubmitButton" Command="{Binding SubmitCommand}" Template="{StaticResource OnlySubmitButtonTemplate}" Cursor="Hand" Height="25">连接</Button>
        </StackPanel>
    </Grid>
</UserControl>
